package com.atguigu.gmall.order;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.model.order.OrderInfo;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author: 封捷
 * @create-date: 2022/9/7 14:42
 */
@Component
public class OrderFeignDegradeClient implements OrderFeignClient{
    @Override
    public Result<Map<String, Object>> trade() {
        return Result.<Map<String, Object>>fail().message("服务降级了。");
    }

    @Override
    public Result<OrderInfo> getOrderInfoById(Long orderId) {
        return Result.<OrderInfo>fail().message("服务降级了。");
    }

    @Override
    public Result<Long> submitSeckillOrder(OrderInfo orderInfo) {
        return Result.<Long>fail().message("服务降级了。");
    }
}
